package com.email.entity;


public class Message {
	
	private String userId;
	private String type;
	private MessageBody body;
	
	public Message() {
		super();
	}
	public Message(String userId, String type, MessageBody body) {
		super();
		this.userId = userId;
		this.type = type;
		this.body = body;
	}
	
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public MessageBody getBody() {
		return body;
	}
	public void setBody(MessageBody body) {
		this.body = body;
	}
	
	@Override
	public String toString() {
		return "Message [userId=" + userId + ", type=" + type + ", body=" + body + "]";
	}
}
